<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>错误提示</title>
    <style>
        main {
            line-height: 2.25;
            padding: 0 16px;
        }

        table {
            border: 1px solid rgba(0, 0, 0, 0.25);
            width: 100%;
            border-collapse: collapse;
        }

        thead {
            background-color: rgba(0, 0, 0, 0.25);
            font-weight: bold;
        }

        tbody {
            color: rgba(0, 0, 0, 0.85);
            font-size: 14px;
        }

        thead td:nth-child(1) {
            width: 3em;
        }

        thead td:nth-child(2) {
            width: 50%;
        }

        tbody tr:nth-child(2n) {
            background-color: rgba(0, 0, 0, 0.125);
        }

        tr td:nth-child(1) {
            text-align: center;
        }

        td {
            padding: 0 8px;
            border: 1px solid rgba(0, 0, 0, 0.125);
        }
    </style>
</head>
<?php $list = $debugArray['list'] ?? array(); ?>

<body>
    <main>
        <h1>
            <span>(<?php echo $debugArray['code'] ?? ''; ?>)</span>
            <span><?php echo $debugArray['msg'] ?? ''; ?></span>
        </h1>
        <table>
            <thead>
                <tr>
                    <td>行数</td>
                    <td>文件</td>
                    <td>函数</td>
                    <td>类</td>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($list as $info) {
                    if (($info['line'] ?? '') == '') {
                        break;
                    }
                ?>
                    <tr>
                        <td><?php echo $info['line'] ?? '' ?></td>
                        <td><?php echo $info['file'] ?? '' ?></td>
                        <td><?php echo $info['function'] ?? '' ?></td>
                        <td><?php echo $info['class'] ?? '' ?></td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </main>
</body>

</html>

<?php exit(); ?>